package com.mew.chess;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.mew.chess.core.common.provide"})
@ComponentScan( {"com.mew.chess.core", "com.mew.chess", "com.mew.common.config", "com.mew.common.dc.redis", "com.zebra.remoting.tms"})
@Slf4j
public class ChessApplication {
    public static void main(String[] args) {
        try{
            SpringApplication.run(ChessApplication.class, args);
        }catch (Exception e){
            log.error("start error:", e);
        }
    }
}
